package tk.mybatis.springboot.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.fasterxml.jackson.annotation.JsonFormat;

public class TUser implements Comparable<TUser> , Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8424958671573587537L;

	//id
	@Id
	private String id;
	
	//用户类型
	private String mtype;
	
	//状态
	private String state;
	
	//昵称
	private String nickname;
	
	//签名
	private String signature;
	
	//头像
	private String pic;
	
	//类型
	private String type;
	
	//图片
	private String img;
	
	//学校
	private String school;
	
	//专业
	private String major;
	
	//学历
	private String qualifications;
	
	//职业
	private String occupation;
	
	//内心独白
	private String monologue;
	
	//魅力部位
	private String charm;
	
	//兴趣爱好
	private String interest;
	
	//理想类型
	private String idealtype;
	
	//年龄
	private Integer age;
	
	//身高
	private Integer height;
	
	//星座
	private String constellation;
	
	//常出没
	private String haunt;
	
	//信用积分
	private Integer score;
	
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date createdate;
	
	//修改时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date modifydate;
	
	//微信关键字
	private String openid;
	
	//经度
	private String longitude;
	
	//纬度
	private String latitude;
	
	private Integer sex;
	
	/**里程（相距公里外加字段）*/
	private Integer transport_mileage;
	
	private Integer followCount;
	
	private Integer orderCount;
	
	private String phone;
	
	private String password;
	
	private Integer clerkStatus;
	
	private String idcard;

	private String email;
	
	private String charmTypeId;
	
	private String realname;
	
	private String introduction;
	
	private String accessId;
	//业务状态
	private String status;
	
	public String getAccessId() {
		return accessId;
	}

	public void setAccessId(String accessId) {
		this.accessId = accessId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getCharmTypeId() {
		return charmTypeId;
	}

	public void setCharmTypeId(String charmTypeId) {
		this.charmTypeId = charmTypeId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getClerkStatus() {
		return clerkStatus;
	}

	public void setClerkStatus(Integer clerkStatus) {
		this.clerkStatus = clerkStatus;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getFollowCount() {
		return followCount;
	}

	public void setFollowCount(Integer followCount) {
		this.followCount = followCount;
	}

	public Integer getOrderCount() {
		return orderCount;
	}

	public void setOrderCount(Integer orderCount) {
		this.orderCount = orderCount;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getTransport_mileage() {
		return transport_mileage;
	}

	public void setTransport_mileage(Integer transport_mileage) {
		this.transport_mileage = transport_mileage;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMtype() {
		return mtype;
	}

	public void setMtype(String mtype) {
		this.mtype = mtype;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getQualifications() {
		return qualifications;
	}

	public void setQualifications(String qualifications) {
		this.qualifications = qualifications;
	}

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public String getMonologue() {
		return monologue;
	}

	public void setMonologue(String monologue) {
		this.monologue = monologue;
	}

	public String getCharm() {
		return charm;
	}

	public void setCharm(String charm) {
		this.charm = charm;
	}

	public String getInterest() {
		return interest;
	}

	public void setInterest(String interest) {
		this.interest = interest;
	}

	public String getIdealtype() {
		return idealtype;
	}

	public void setIdealtype(String idealtype) {
		this.idealtype = idealtype;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public String getConstellation() {
		return constellation;
	}

	public void setConstellation(String constellation) {
		this.constellation = constellation;
	}

	public String getHaunt() {
		return haunt;
	}

	public void setHaunt(String haunt) {
		this.haunt = haunt;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Date getModifydate() {
		return modifydate;
	}

	public void setModifydate(Date modifydate) {
		this.modifydate = modifydate;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	@Override
	public int compareTo(TUser o) {
		return this.getTransport_mileage().compareTo(o.getTransport_mileage());
	}
}
